/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package controller;

import javax.microedition.lcdui.Image;

/**
 *
 * @author efraeli
 */
public class VolumeController extends ButtonController {
    public final static int BUTTON_ID_VOLUME_UP   = 1;
    public final static int BUTTON_ID_VOLUME_DOWN = 2;
    public final static int BUTTON_ID_VOLUME_MUTE = 3;

    public VolumeController(int initialPosX, int initialPosY) {
        try {
            this.addButton(new ImageButton(BUTTON_ID_VOLUME_UP,
                    0, initialPosY - 30,
                    Image.createImage("/images/sound_plus_i.png"),
                    Image.createImage("/images/sound_plus_s.png"),
                    Image.createImage("/images/sound_plus_h.png")));
            this.addButton(new ImageButton(BUTTON_ID_VOLUME_MUTE,
                    0, initialPosY - 60,
                    Image.createImage("/images/sound_mute_i.png"),
                    Image.createImage("/images/sound_mute_s.png"),
                    Image.createImage("/images/sound_mute_h.png")));
            this.addButton(new ImageButton(BUTTON_ID_VOLUME_DOWN,
                    0, initialPosY - 90,
                    Image.createImage("/images/sound_minus_i.png"),
                    Image.createImage("/images/sound_minus_s.png"),
                    Image.createImage("/images/sound_minus_h.png")));
        } catch (Throwable ex) {
            ex.printStackTrace();
        }
    }
}
